snippet debug_bridge
&debug_bridge_0 {
	compatible = "xlnx,xvc";
};
endsnippet

snippet axidma
&amba_pl {
  axidma_chrdev: axidma_chrdev@0 {
    compatible = "xlnx,axidma-chrdev";
    dmas = <&axi_dma_0 0 &axi_dma_0 1>;
    dma-names = "tx_channel", "rx_channel";
  };
};

&axi_dma_0 {
  dma-channel@40400000 {
    xlnx,device-id = <0x0>;
  };
  dma-channel@40400030 {
    xlnx,device-id = <0x1>;
  };
};
endsnippet


snippet pl_intc
pl_intc: pl_intc{
	compatible = "hello,irq-controller";
	interrupt-parent = <&intc>;  // 全局中断控制器
	interrupts-extended = 
		<&intc 0 29 IRQ_TYPE_EDGE_RISING>,  // 中断1
		<&intc 0 34 IRQ_TYPE_EDGE_RISING>;  // 中断1
};
endsnippet


snippet axi_fifo
&axi_fifo_mm_s_0 {
	xlnx,tx-max-pkt-size = <257>; 
	xlnx,rx-min-pkt-size = <255>;
};
endsnippet
